package com.rsstuan.utils;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class ArticleUtils {
	
	public static byte[] generateMd5Digest(byte[] data) throws NoSuchAlgorithmException {
		MessageDigest md5 = MessageDigest.getInstance("MD5");
		byte[] digest = md5.digest(data);
		
		return digest;
		
	}

}
